<template>
	<view>
		<view class="zonghegedan">
			<view class="zonghegedantitle">
				歌手
			</view>
			<view class="Integrated-artist" v-for="(item,index) in artist" :key="item.id">
				<view class="artistContent">
					<image :src="item.picUrl"></image>
					<view style="margin-left: 20upx;">
						<view class="authername">
							<text>{{item.name}}</text>
							<text v-if="item.alias.length !== 0">({{item.alias[0]}})</text>
						</view>
					</view>
				</view>
				<view class="artistText">
					<text>+</text>
					<text>关注</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props: ['artist']
	}
</script>

<style scoped lang="scss">
	.authername text:nth-child(1) {
		display: block;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;

	}

	.Integrated-artist {
		background-color: #fff;
		display: flex;
		align-items: center;
		padding: 20upx 30upx;
		justify-content: space-between;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;

		.artistContent {
			display: flex;
			align-items: center;

			image {
				width: 100upx;
				height: 100upx;
				border-radius: 100%;
			}
		}

		.artistText {
			display: flex;
			color: #B23B57;
			align-items: center;
			border: 1px solid #B23B57;
			border-radius: 10px;
			padding: 1px;
			-webkit-box-sizing: border-box;
			-moz-box-sizing: border-box;
			box-sizing: border-box;

			text {
				margin: 0 6upx;
			}
		}
	}

	.zonghegedan {
		display: flex;
		flex-direction: column;
		padding: 30upx 0 0 0;
		box-sizing: border-box;
		border-bottom: 1px solid #E5E5E5;

		.zonghegedantitle {
			border-top-left-radius: 10px;
			border-top-right-radius: 10px;
			background-color: #fff;
			padding: 30upx;
			font-weight: 600;
			font-size: 17px;
		}

	}
</style>
